package com.appstore.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DownloadHistory implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;

    private Long userId;

    private Long appId;

    private String appName;

    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date downloadTime;

    private Integer installed;

    private Integer hasUpdated;

    private String iconUrl;

}
